public class Text2 {
    public static void main(String[] args) {
        System.out.println("hello word");
        System.out.println(100);
        System.out.println(3.14);
        System.out.println('A');
        System.out.println(true);
        System.out.println(false);

        //八种基本数据类型
        int a = 100;
        System.out.println(a);
        System.out.println(Integer.MIN_VALUE);
        System.out.println(Integer.MAX_VALUE);

        short b = 100;
        System.out.println(b);
        System.out.println(Short.MIN_VALUE);
        System.out.println(Short.MAX_VALUE);

        long c = 100L;
        System.out.println(c);
        System.out.println(Long.MIN_VALUE);
        System.out.println(Long.MAX_VALUE);

        byte d = 100;
        System.out.println(d);
        System.out.println(Byte.MIN_VALUE);
        System.out.println(Byte.MAX_VALUE);

        float e = 1.24F;
        System.out.println(e);
        System.out.println(Float.MIN_VALUE);
        System.out.println(Float.MAX_VALUE);

        double f = 12.4;
        System.out.println(f);
        System.out.println(Double.MIN_VALUE);
        System.out.println(Double.MAX_VALUE);

        char g = 'A';
        System.out.println(g);
        System.out.println(Character.MIN_VALUE);
        System.out.println(Character.MAX_VALUE);

        boolean h = true;

        //强制转换
        int a1 = 100;
        double a2 = 100;
        short a3 = 100;
        a1 = (int)a2;  //数据由小范围变大范围需要强制转换  显示转换
        a1 = a3; //  隐式转换  数据由小范围转为大范围自动进行

        //类型提升
        //不同数据类型相加 范围小的会自动提升至范围大的
        double sum;
        sum = a2 + a1;



    }
}
